package demo.springboot.service;

import demo.springboot.POJO.T_news;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * demo.springboot.POJO.T_news 业务接口层
 */
@org.apache.ibatis.annotations.Mapper
public interface T_newsService {
//    List<News> findAll();
//    News insertByNews(News news);
//    News update(News news);
//    News delete(Long id);
//    News findById(Long id);


    @Select("   SELECT * FROM `t_news`    ")
    List<T_news> findAll();


    @Select("SELECT * FROM   t_news   WHERE   id   =   #{id}")
    T_news findById(Integer id);


}
